package cn.jeeweb.web.modules.equipment.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.jeeweb.common.annotate.UiPropertyField;
import cn.jeeweb.common.flag.ObjectMark;
import cn.jeeweb.common.mvc.entity.DataEntity;
import cn.xjzn.framework_Core.ModuleServe;
import com.baomidou.mybatisplus.annotations.TableField;

/**
 * Created by zll on 2019/11/6.
 */
public class EqsEquipmentCatalog extends DataEntity<String> implements ObjectMark {

    @TableField(value = "code")
    @Excel(name = "分类编号", orderNum = "0", width = 30.0D )
    @UiPropertyField(moduleId = ModuleServe.equipmentCatalogModule,propertyName = "code",labelText="分类编号",displayPosition =1)
    private String code;
    @TableField(value = "name")
    @Excel(name = "分类名称", orderNum = "0", width = 30.0D )
    @UiPropertyField(moduleId = ModuleServe.equipmentCatalogModule,propertyName = "name",labelText="分类名称",displayPosition =2)
    private String name;
    @TableField(value = "parent_id")
    @UiPropertyField(moduleId = ModuleServe.equipmentCatalogModule,propertyName = "id",aliasName = "parentId",labelText="父级编号",ownerPropertyName = "eqsEquipmentCatalog",isReference = 1,referenceModuleId = ModuleServe.equipmentCatalogModule,displayPosition =3)
    private String parentId;

    @TableField(exist = false)
    private EqsEquipmentCatalog eqsEquipmentCatalog;

    public EqsEquipmentCatalog getEqsEquipmentCatalog() {
        return eqsEquipmentCatalog;
    }

    public void setEqsEquipmentCatalog(EqsEquipmentCatalog eqsEquipmentCatalog) {
        this.eqsEquipmentCatalog = eqsEquipmentCatalog;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }
}
